package cn.edu.sgu.www.mhxysy.dto.fabao;

import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class FabaoSixiangAttributeCategoryDTO implements DataTransferObject {

    @ApiModelProperty(value = "ID")
    private Integer id;

    /**
     * 四象类型
     */
    @Positive(message = "四象类型" + CustomMessages.ILLEGAL)
    @NotNull(message = "四象类型" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "四象类型", required = true)
    private Integer type;

    /**
     * 属性效果
     */
    @NotBlank(message = "属性效果" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "属性效果", required = true)
    private String effect;

    /**
     * 法宝类型ID
     */
    @Positive(message = "法宝类型ID" + CustomMessages.ILLEGAL)
    @NotNull(message = "法宝类型" + CustomMessages.ID_NOT_NULL)
    @ApiModelProperty(value = "法宝类型ID", required = true)
    private Integer fabaoId;
}